package thread.threaddemo;

/**
 * @Author: wenjingyuan
 * @Date: 2022/11/01/20:52
 * @Description:继承Thread类，重写run方法
 */
public class ThreadDemo7 {
    public static void main(String[] args) {
       Thread thread=new Thread(){
           @Override
           public void run() {
               System.out.println("执行的线程为"+Thread.currentThread().getName());
           }
       };
       thread.start();
    }
}
